package com.npy.reggie.doman.old;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data

@AllArgsConstructor
public class EmployeeOld implements Serializable {


    private final static long SerialVersionUID = 1L;
    private Long id ;

    @TableField(exist = false)
    public static String typeId ;

    private String username;

    private String name;

    private String password;

    private String phone;

    private String sex;

    private String idNumber; //驼峰命名法 ---> 映射的字段名为 id_number

    private Integer status;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;

    public String getNewTypeId(){
        typeId= String.valueOf(id);
        return typeId;
    }

}
